home *** CD-ROM | disk | FTP | other *** search
/ Easy Personal Web Page / Easy Personal Web Page.iso / CONVERTR / RTF2HTM / WRTF2HTM / HTML-TRA.NS < prev    next >
Text File  |  1994-11-05  |  6KB  |  215 lines

  1. # Starting with rtftohtml 2.7, all html-trans files have a version number
  2. # The version number must appear before any other tables.
  3. .Version,3
  4.  
  5. # Paragraph Style Tags table
  6. # Format:
  7. #"name","starttag","endtag","col2mark","tabmark","parmark",allowtext,cannest,DeleteCol1,fold,TocStyl
  8. .PTag
  9. "Normal","","\n","\t","\t","<p>\n",1,0,0,1,0
  10. "h1","<h1>\n","</h1>\n","\t","\t","<br>\n",0,0,0,1,1
  11. "h2","<h2>\n","</h2>\n","\t","\t","<br>\n",0,0,0,1,2
  12. "h3","<h3>\n","</h3>\n","\t","\t","<br>\n",0,0,0,1,3
  13. "h4","<h4>\n","</h4>\n","\t","\t","<br>\n",0,0,0,1,4
  14. "h5","<h5>\n","</h5>\n","\t","\t","<br>\n",0,0,0,1,5
  15. "h6","<h6>\n","</h6>\n","\t","\t","<br>\n",0,0,0,1,6
  16. "ul","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,0,1,0
  17. "ul-d","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,1,1,0
  18. "ol","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,0,1,0
  19. "ol-d","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,1,1,0
  20. "dl","<dl>\n<dt>","</dl>","\n<dd>","\t","\n<dt>",1,1,0,1,0
  21. "TERM","<dl>\n<dt>","</dl>","\t","\t","\n<dt>",1,1,0,1,0
  22. "DEF","<dd>","","\t","\t","\n<br>",1,1,0,1,0
  23. "dir","<dir>\n<li>","</dir>","\n<li>","\n<li>","\n<li>",0,1,0,1,0
  24. "menu","<menu>\n<li>","</menu>\n","\n<li>","\n<li>","\n<li>",0,1,0,1,0
  25. "address","<address>","</address>\n","\t","\t","<br>\n",1,0,0,1,0
  26. "pre","\n<pre>\n","\n</pre>\n","\t","\t","\n",0,0,0,0,0
  27. "blockquote","<blockquote>","</blockquote>","\t","\t","\n",1,0,0,1,0
  28. "hr","<hr>","","","","",1,0,0,1,0
  29. # This is a required entry; tables will be formatted with this entry
  30. "_Table","\n<pre>\n","\n</pre>\n","\t","\t","\n",0,0,0,0,0
  31.  
  32. # Text STyle Tags table
  33. # Format
  34. # "name","Starttag","Endtag"
  35. .TTag
  36. "b","<b>","</b>"
  37. "i","<i>","</i>"
  38. "u","<u>","</u>"
  39. "em","<em>","</em>"
  40. "cite","<cite>","</cite>"
  41. "tt","<tt>","</tt>"
  42. "strong","<strong>","</strong>"
  43. "code","<code>","</code>"
  44. "samp","<samp>","</samp>"
  45. "kbd","<kbd>","</kbd>"
  46. "var","<var>","</var>"
  47. "dfn","<dfn>","</dfn>"
  48. "sup","<sup>","</sup>"
  49.  
  50. # Text Match Table
  51. # Format:
  52. # "Font",FontSize,Match,Mask,"TextStyleName"
  53. # "" is don't care for fonts
  54. # 0 is don't care for font size
  55. # Special names for TextStyleName
  56. # _Discard - text will not be output
  57. # _Name    - text will be used for an named anchor
  58. # _HRef    - text is an href
  59. # _Hot     - end of this text marks the end of hot text
  60. # _Literal - text is sent thorough without any translation
  61. # The order of bits for match and mask is:
  62. #    v^bDWUHACSOTIB - Bold
  63. #    v^bDWUHACSOTI - Italic
  64. #    v^bDWUHACSOT - StrikeThrough
  65. #    v^bDWUHACSO - Outline
  66. #    v^bDWUHACS - Shadow
  67. #    v^bDWUHAC - SmallCaps
  68. #    v^bDWUHA - AllCaps
  69. #    v^bDWUH - Hidden
  70. #    v^bDWU - Underline
  71. #    v^bDW - Word Underline
  72. #    v^bD - Dotted Underline
  73. #    v^b - Double Underline
  74. #    v^ - SuperScript
  75. #    v - SubScript
  76. #    v^bDWUIACSOTIB
  77. .TMatch
  78. #
  79. # First do specials, because they are higher priority than other matches
  80. # double-underline/not hidden -> hot text
  81. # double-underline/hidden -> href
  82. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  83. "",0,00100000000000,00100010000000,"_Hot"
  84. "",0,00100010000000,00100010000000,"_HRef"
  85.  
  86. # hidden/shadow -> literal
  87. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  88. "",0,00000010010000,00000010010000,"_Literal"
  89.  
  90. # hidden/outline -> Name
  91. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  92. "",0,00000010001000,00000010001000,"_Name"
  93.  
  94. # hidden/all other hiddens are discarded
  95. "",0,00000010000000,00000010000000,"_Discard"
  96.  
  97. # All other Superscripts just superscripts
  98. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  99. "",0,01000000000000,01000000000000,"sup"
  100.  
  101. # Regular matches - You can have multiple of these active
  102.  
  103. # monospace fonts -> tt
  104. "Courier",0,00000000000000,00000000000000,"tt"
  105. "Monoco",0,00000000000000,00000000000000,"tt"
  106.  
  107. # bold -> bold
  108. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  109. "",0,00000000000001,00000000000001,"b"
  110.  
  111. # italic/underline -> cite, italic/nounderline -> italic
  112. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  113. "",0,00000000000010,00000100000010,"i"
  114. "",0,00000100000010,00000100000010,"cite"
  115.  
  116. # any underline without italic -> underline
  117. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  118. "",0,00010000000000,00111100000010,"u"
  119. "",0,00001000000000,00111100000010,"u"
  120. "",0,00000100000000,00111100000010,"u"
  121. "",0,00100000000000,00111100000010,"u"
  122.  
  123. # outline,shadow -> em
  124. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  125. "",0,00000000001000,00000000001000,"em"
  126. "",0,00000000010000,00000000010000,"em"
  127.  
  128.  
  129. # Format:
  130. # "Paragraph Style",NestLevel,"ParagraphStyleName"
  131. # First Entry is the default if no style match. Should be level 0 
  132. # point to a Paragraph style with no markup
  133. .PMatch
  134. "Normal",0,"Normal"
  135. # This is a required entry; tables will be formatted with this entry
  136. "_Table",0,"_Table"
  137. "heading 1",0,"h1"
  138. "heading 2",0,"h2"
  139. "heading 3",0,"h3"
  140. "heading 4",0,"h4"
  141. "heading 5",0,"h5"
  142. "heading 6",0,"h6"
  143. "ol",0,"ol"
  144. "ol 1",1,"ol"
  145. "ol 2",2,"ol"
  146. "ol 3",3,"ol"
  147. "ol 4",4,"ol"
  148. "ol 5",5,"ol"
  149. "ul",0,"ul"
  150. "ul 1",1,"ul"
  151. "ul 2",2,"ul"
  152. "ul 3",3,"ul"
  153. "ul 4",4,"ul"
  154. "ul 5",5,"ul"
  155. "numbered list",0,"ol-d"
  156. "numbered list 1",1,"ol-d"
  157. "numbered list 2",2,"ol-d"
  158. "numbered list 3",3,"ol-d"
  159. "numbered list 4",4,"ol-d"
  160. "numbered list 5",5,"ol-d"
  161. "bullet list",0,"ul-d"
  162. "bullet list 1",1,"ul-d"
  163. "bullet list 2",2,"ul-d"
  164. "bullet list 3",3,"ul-d"
  165. "bullet list 4",4,"ul-d"
  166. "bullet list 5",5,"ul-d"
  167. "dir",0,"dir"
  168. "dir 1",1,"dir"
  169. "dir 2",2,"dir"
  170. "dir 3",3,"dir"
  171. "dir 4",4,"dir"
  172. "dir 5",5,"dir"
  173. "small gloss",0,"dl"
  174. "small gloss 1",1,"dl"
  175. "small gloss 2",2,"dl"
  176. "small gloss 3",3,"dl"
  177. "small gloss 4",4,"dl"
  178. "small gloss 5",5,"dl"
  179. "glossary",0,"dl"
  180. "glossary 1",1,"dl"
  181. "glossary 2",2,"dl"
  182. "glossary 3",3,"dl"
  183. "glossary 4",4,"dl"
  184. "glossary 5",5,"dl"
  185. "menu",0,"menu"
  186. "menu 1",1,"menu"
  187. "menu 2",2,"menu"
  188. "menu 3",3,"menu"
  189. "menu 4",4,"menu"
  190. "menu 5",5,"menu"
  191. "pre",0,"pre"
  192. "blockquote",0,"blockquote"
  193. "address",0,"address"
  194. "hr",0,"hr"
  195. # the following paragraph styles will be discarded
  196. "toc 1",0,"_Discard"
  197. "toc 2",0,"_Discard"
  198. "toc 3",0,"_Discard"
  199. "toc 4",0,"_Discard"
  200. "toc 5",0,"_Discard"
  201. "index 1",0,"_Discard"
  202. "index 2",0,"_Discard"
  203. "index 3",0,"_Discard"
  204. "index 4",0,"_Discard"
  205. "index 5",0,"_Discard"
  206. "TERM",0,"TERM"
  207. "DEF",1,"DEF"
  208. "TERM 1",1,"TERM"
  209. "DEF 1",2,"DEF"
  210. "TERM 2",2,"TERM"
  211. "DEF 2",3,"DEF"
  212. "HTML",0,"_Literal"
  213. "footnote text",0,"Normal"
  214.